﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Xml;
using System.Windows.Forms;

namespace TB_WinForm
{
    public class SysInfo
    {
        public static WS_Seller.Seller_Manage WSSELLER = new WS_Seller.Seller_Manage();
        public static WS_HongBao.HongBao_Logic WSHBL = new WS_HongBao.HongBao_Logic();
        public static WS_Top.TB_Top WSTOP = new WS_Top.TB_Top();
        public static string Seller_Nick = XML_VALUE("Seller_Nick");
        public static string WX_User = XML_VALUE("WX_User");
        public static DataSet Seller_Info;

        public static XmlNode Info_List;

        private static string XML_VALUE(string KEY)
        {
            XmlDocument xml = new XmlDocument();
            xml.Load(Application.StartupPath + @"\SysInfo.xml");
            Info_List = xml.SelectSingleNode("//Client_Info");
            return Info_List[KEY].InnerText.ToString();
        }
        public static string Get_Server()
        {
            return XML_VALUE("Server");
        }
    }
}
